package com.flash.GlobalManagement.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
@RequestMapping("")
public class UriController {

    @RequestMapping("*")
    public String getPage(HttpServletRequest request){
        String requestURI = request.getRequestURI();
        int length = requestURI.length();
        return requestURI.substring(0,length);
    }
}
